package cz.muni.fi.pa165.sme.web.fo;

import java.util.Date;

/**
 * @author jirankova
 */
public class SportActivityRecordFO {

	private Long id;
	private SportActivityFO sportActivity;
	private UserFO user;
	private Date activityStart;
	private Date activityStop;
	private Float distance;
	private Float duration;

	public Long getId() {
		return id;
	}

	public void setId(final Long id) {
		this.id = id;
	}

	public SportActivityFO getSportActivity() {
		return sportActivity;
	}

	public void setSportActivity(final SportActivityFO sportActivity) {
		this.sportActivity = sportActivity;
	}

	public UserFO getUser() {
		return user;
	}

	public void setUser(final UserFO user) {
		this.user = user;
	}

	public Date getActivityStart() {
		return activityStart;
	}

	public void setActivityStart(final Date activityStart) {
		this.activityStart = activityStart;
	}

	public Date getActivityStop() {
		return activityStop;
	}

	public void setActivityStop(final Date activityStop) {
		this.activityStop = activityStop;
	}

	public Float getDistance() {
		return distance;
	}

	public void setDistance(final Float distance) {
		this.distance = distance;
	}

	public Float getDuration() {
		return duration;
	}

	public void setDuration(final Float duration) {
		this.duration = duration;
	}

	@Override
	public boolean equals(final Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		final SportActivityRecordFO that = (SportActivityRecordFO) o;

		if (id != null ? !id.equals(that.id) : that.id != null) return false;

		return true;
	}

	@Override
	public int hashCode() {
		return id != null ? id.hashCode() : 0;
	}
}
